#include <ros/ros.h>
#include <ipc_bridge/ipc_bridge.h>

#include <nidaqIO/Doubles.h>
#include <ipc_bridge/msgs/nidaqIO_Doubles.h>

#define NAMESPACE nidaqIO
#define NAME Doubles

ipc_bridge::Publisher<ipc_bridge::NAMESPACE::NAME> *p;
ipc_bridge::NAMESPACE::NAME out_msg;

void callback(const NAMESPACE::NAME::ConstPtr &msg)
{
	for(int i=0;i<(msg->data).size();i++)
		 out_msg.data[i]= msg->data[i];
	out_msg.length = msg->data.size();
  	p->Publish(out_msg);
}

#include "publisher.h"

